package pattern.factory.工厂方法;

public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();

        CoffeeFactory factory = new ACoffeeFactory();
        
        coffeeStore.setFactory(factory);

        Coffee coffee = coffeeStore.oderCoffee();

        System.out.println(coffee.getName());

    }
}
